package cinema.v1_0.model;

public class Session {
    private String id;
    private String movieId;
    private String hallId;
    private String startTime; // yyyy-MM-dd HH:mm
    private double price;

    public Session(String id, String movieId, String hallId, String startTime, double price) {
        this.id = id;
        this.movieId = movieId;
        this.hallId = hallId;
        this.startTime = startTime;
        this.price = price;
    }

    public String getId()        { return id; }
    public String getMovieId()   { return movieId; }
    public String getHallId()    { return hallId; }
    public String getStartTime() { return startTime; }
    public double getPrice()     { return price; }

    @Override
    public String toString() {
        return id + "," + movieId + "," + hallId + "," + startTime + "," + price;
    }
}